<template>
  <el-row>
    <el-col :span="3"></el-col>
    <el-col :span="18">
      <div>
        <div >
          <h1>{{ param.title }}</h1>
          <span>{{ param.type }}</span>
        </div>
        <div v-html="param.info">
        </div>
        <el-button @click="this.$router.push('/note/show')">返回首页</el-button>

      </div>
    </el-col>
    <el-col :span="3"></el-col>
  </el-row>

</template>
<script>
import axios from "axios";

export default {
  data() {
    return {
      noteEsId: '',
      param: {},

    }
  }, methods: {
    init() {
      console.log(this.noteEsId)
      axios.get("/project/note/findById", {params: {noteId: this.noteEsId}}).then(n => {
        console.log(n.data)
        this.param = n.data;
      })


    }


  }, created() {
    this.noteEsId = sessionStorage.getItem("id");
    this.init();
  }
}
</script>

<style scoped>

</style>








